package com.chen.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.reggie.dto.DishDto;
import com.chen.reggie.entity.Dish;


public interface DishService extends IService<Dish> {

    //新增菜品，同时插入两张表对应的口味，需要操作两张表：dish dish_flavor
    public void saveWithFlavor(DishDto dishDto);

    //根据id查询菜品信息和口味信息
    public DishDto getByIdwithFlavor(Long id);

    public void updateWithFlavor(DishDto dishDto);
}

